package com.emperor.mapper;

import com.emperor.dto.NodeDto;
import com.emperor.entity.Business;
import com.emperor.vo.RegionDataVo;
import com.emperor.vo.VmListVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NodeMapper {
    List<RegionDataVo> findAll(String regionId);

    List<Business> findBusiness();

    VmListVo findNodeById(Integer nodeId);

    void updateNode(Integer nodeId, NodeDto dto);

    void deleteNode(Integer id);

    Integer count();
}
